package com.ruoyi.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.project.domain.entity.Dayang;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 打样费用(Dayang)表数据库访问层
 *
 * @author yanweichao
 * @since 2025-06-22 11:26:36
 */
@Mapper
public interface DayangMapper extends BaseMapper<Dayang> {

    @Select("select max(right(dydh, 3)) dydh from t_dayang where dydh like CONCAT(#{prefix} ,'%')")
    String getMaxNo(String prefix);
}
